'''
print(10>5 and 20<30) # True

# and运算规则：只有当and左右两边同时为True，结果才为True
print(True and True) # True
print(True and False) # False
print(False and True) # False
print(False and False) # False

print("-----------------------------------------")

# or运算规则：只要or左边或者右边有一个为True，结果就为True
print(True or True) # True
print(True or False) # True
print(False or True) # True
print(False or False) # False

print("-----------------------------------------")
print(not True) # False
print(not False) # True

'''

print(True and True) # True
print(True and False) # False
print(False and True) # False
print(False and False) # False

print('---------------------')

print(True or True) # True
print(True or False) # True
print(False or True) # True
print(False or False) # False

print('---------------------')

print(not True) # False
print(not False) # True